package com.example.communitypro.mapper;
import com.example.communitypro.pojo.CommunityInformation;

import java.util.List;

public interface CommunityInformationMapper {
    int insertCommunityInformation(CommunityInformation communityInformation); //增加社区
    int deleteCommunityInformation(int community_no);//删除社区
    int updateCommunityInformation(CommunityInformation communityInformation); //修改社区信息或更新社区热度
    CommunityInformation selectCommunityInformation(int community_no); //根据编号查找社区
    List<CommunityInformation> selectCommunityByKey(String keyword); //模糊查询
    List<CommunityInformation> getHotCommunity(); //找到所有社区(按社区热度排序:社区点赞量、收藏量、点击量、帖子数) √


    /**
     * 系统自动生成
     */
    int deleteByPrimaryKey(Integer communityNo);

    int insert(CommunityInformation record);

    int insertSelective(CommunityInformation record);

    CommunityInformation selectByPrimaryKey(Integer communityNo);

    int updateByPrimaryKeySelective(CommunityInformation record);

    int updateByPrimaryKey(CommunityInformation record);

    List<CommunityInformation> findCommunityInformationAll();
    List<CommunityInformation> findCommunityInformationDynamic(int communityNo,String communityName);
}
